package com.rock;

import com.rock.job.FlinkCDCJob;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class RockFlinkSyncApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext context = SpringApplication.run(RockFlinkSyncApplication.class, args);

		FlinkCDCJob job = context.getBean(FlinkCDCJob.class);
		job.start();
	}

}
